﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Phone.aspx.cs" Inherits="yuejilalala.Phone" %>

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>绑定手机</title>

		<link href="../AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="../AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="../css/personal.css" rel="stylesheet" type="text/css">
		<link href="../css/stepstyle.css" rel="stylesheet" type="text/css">

		<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
		<script src="../AmazeUI-2.4.2/assets/js/amazeui.js"></script>

	</head>
	<script type="text/javascript" src="jquery.js"></script>
<script language="javascript">
	function get_mobile_code(){
        $.get('Post.aspx', {mobile:jQuery.trim($('#mobile').val())}, function(msg) {
            alert(jQuery.trim(unescape(msg)));
			if(msg=='提交成功'){
				RemainTime();
			}
        });
	};
	var iTime = 59;
	var Account;
	function RemainTime(){
		document.getElementById('zphone').disabled = true;
		var iSecond,sSecond="",sTime="";
		if (iTime >= 0){
			iSecond = parseInt(iTime%60);
			iMinute = parseInt(iTime/60)
			if (iSecond >= 0){
				if(iMinute>0){
					sSecond = iMinute + "分" + iSecond + "秒";
				}else{
					sSecond = iSecond + "秒";
				}
			}
			sTime=sSecond;
			if(iTime==0){
				clearTimeout(Account);
				sTime='获取手机验证码';
				iTime = 59;
				document.getElementById('zphone').disabled = false;
			}else{
				Account = setTimeout("RemainTime()",1000);
				iTime=iTime-1;
			}
		}else{
			sTime='没有倒计时';
		}
		document.getElementById('zphone').value = sTime;
	}	
</script>
	<body>
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
					<div class="am-container header">
				<ul class="message-l">
					<div class="topMessage">
						<div class="menu-hd">
					 <asp:HyperLink ID="hl_dlm" NavigateUrl="information.aspx" runat="server" Visible="False"></asp:HyperLink>
						<asp:HyperLink ID="hl_dl" NavigateUrl="~/Login.aspx"  target="_top" runat="server">亲，请登录</asp:HyperLink>
						<asp:HyperLink ID="hl_zc" NavigateUrl="~/regiest.aspx"  target="_top" runat="server">免费注册</asp:HyperLink>
						
						</div>
					</div>
				</ul>
				<ul class="message-r">
					<div class="topMessage home">
						<div class="menu-hd"><a target="_top" class="h">
                            <asp:HyperLink ID="HyperLink3" NavigateUrl="~/home.aspx" runat="server">商城首页</asp:HyperLink></a></div>
					</div>
					<div class="topMessage my-shangcheng">
						<div class="menu-hd MyShangcheng"><a  target="_top"><i class="am-icon-user am-icon-fw"></i><asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="information.aspx">个人中心</asp:HyperLink></a></div>
					</div>
					<div class="topMessage mini-cart">
						<div class="menu-hd"><a id="mc-menu-hd"  target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span><asp:HyperLink NavigateUrl="shopcart.aspx" ID="HyperLink5" runat="server">购物车</asp:HyperLink></span><asp:Label  id="J_MiniCartNum"  class="h" runat="server" Text="0"></asp:Label></a></div>
					</div>
					
				</ul>
				</div>

						<!--悬浮搜索框-->

						<div class="nav white">
							<div class="logoBig">
								<li><img src="../images/logobig.png" /></li>
							</div>

							<div class="search-bar pr">
								<a name="index_none_header_sysc" href="#"></a>
								<form>
									<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
									<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
								</form>
							</div>
						</div>

						<div class="clear"></div>
					</div>
				</div>
			</article>
		</header>
            <div class="nav-table">
			<div class="long-title"><span class="all-goods">全部分类</span></div>
			<div class="nav-cont">
				<ul>
					<li class="index"><a href="home.aspx">首页</a></li>
				</ul>
				<div class="nav-extra">
					<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b><a style="color: #fcff00;" href="information.aspx">个人中心</a>
					<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
				</div>
			</div>
		</div>
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="am-cf am-padding">
						<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">绑定手机</strong> / <small>Bind&nbsp;Phone</small></div>
					</div>
					<hr/>
					<!--进度条-->
					<div class="m-progress">
						<div class="m-progress-list">
							<span class="step-1 step">
                                <em class="u-progress-stage-bg"></em>
                                <i class="u-stage-icon-inner">1<em class="bg"></em></i>
                                <p class="stage-name">绑定手机</p>
                            </span>
							<span class="step-2 step">
                                <em class="u-progress-stage-bg"></em>
                                <i class="u-stage-icon-inner">2<em class="bg"></em></i>
                                <p class="stage-name">完成</p>
                            </span>
							<span class="u-progress-placeholder"></span>
						</div>
						<div class="u-progress-bar total-steps-2">
							<div class="u-progress-bar-inner"></div>
						</div>
					</div>
					<form class="am-form am-form-horizontal"  action="Phone.aspx" method="post" name="formUser" onSubmit="return register();" runat="server">
						
					
						<div class="am-form-group">
							<label for="user-new-phone" class="am-form-label">请输入新手机号码</label>
							<div class="am-form-content">
							
                                <asp:TextBox ID="mobile" class="inputBg" runat="server"></asp:TextBox>
							</div>
						</div>
						<div class="am-form-group code">
							<label for="user-new-code" class="am-form-label">验证码</label>
							<div class="am-form-content">
								
                                <asp:TextBox ID="TextBox1" class="inputBg" runat="server"></asp:TextBox>
							</div>
							<a class="btn" href="javascript:void(0);" onclick="sendMobileCode();" id="sendMobileCode">
								
								<input id="zphone" class="am-btn am-btn-danger" type="button" value=" 发送手机验证码 " onclick="get_mobile_code();">
							</a>
						</div>
						<div class="info-btn">
							
                            <asp:Button ID="Button1" class="am-btn am-btn-danger" runat="server" Text="保存修改" OnClick="Button1_Click" />
						</div>

					</form>

				</div>
				<!--底部-->
				<div class="footer">
					<div class="footer-hd">
						<p>
							<a href="#">恒望科技</a>
							<b>|</b>
							<a href="#">商城首页</a>
							<b>|</b>
							<a href="#">支付宝</a>
							<b>|</b>
							<a href="#">物流</a>
						</p>
					</div>
					<div class="footer-bd">
						<p>
							<a href="#">关于恒望</a>
							<a href="#">合作伙伴</a>
							<a href="#">联系我们</a>
							<a href="#">网站地图</a>
							<em>© 2015-2025枫林火山组 版权所有. </em>
						</p>
					</div>
				</div>
			</div>

		<aside class="menu">
				<ul>
					<li class="person">
						<a href="#">个人中心</a>
					</li>
					<li class="person">
						<a href="#">个人资料</a>
						<ul>
							<li> <a href="information.aspx">个人信息</a></li>
							<li class="active"> <a href="Safety.aspx">安全设置</a></li>
							<li > <a href="address.aspx">收货地址</a></li>
						</ul>
					</li>
					<li class="person">
						<ul>
							<li><a href="order.aspx">订单管理</a></li>
						</ul>
					</li>

					<li class="person">
						<ul>
							<li> <a href="remark.aspx">评价</a></li>
						</ul>
					</li>

				</ul>

			</aside>
		</div>
		
	</body>

</html>
